var e = getApp();

Page({
    data: {
        language: "",
        courseList: []
    },
    onLoad: function(e) {
        this._getData();
    },
    _getData: function(t) {
        var a = this;
        e._getNetWork({
            url: e.getNetAddresss("plugin.video-demand.api.video-demand-member.get-me-reward"),
            success: function(e) {
                if (1 == e.data.result) {
                    var n = e.data.data;
                    a.setData({
                        courseList: n
                    }), t && t(e);
                } else console.error(e);
            },
            fail: function(e) {
                console.error(e);
            }
        });
    },
    toCourse: function(e) {
        var t = e.currentTarget.dataset.id;
        wx.navigateTo({
            url: "/packageA/detail_v2/detail_v2l?id=" + t
        });
    },
    onReady: function() {
        var e = wx.getStorageSync("langIndex");
        this.setData({
            language: e.en
        }), wx.setNavigationBarTitle({
            title: "我的打赏"
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});